#!/usr/bin/env python
# -*- coding:UTF-8 -*-
"""
facade.py
外观模式代码原型
"""

class ProductA(object):
    def show(self): return self.__class__, self.show.__name__


class ProductB(object):
    def show(self): return self.__class__, self.show.__name__


class ProductC(object):
    def show(self): return self.__class__, self.show.__name__


class Product(object):
    def __init__(self):
        self.pa = ProductA()
        self.pb = ProductB()
        self.pc = ProductC()

    def show(self): return self.pa.show(), self.pb.show(), self.pc.show()